package com.xseagull.account.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xseagull.account.common.ResultData;
import com.xseagull.account.dao.UserDao;
import com.xseagull.account.entity.User;
import com.xseagull.account.service.IUserService;

@Service
public class UserService implements IUserService {

	@Autowired
	private UserDao userDao;

	@Override
	@Transactional
	public ResultData insert(User user) {
		userDao.insert(user);
		return ResultData.success(null);
	}

	@Override
	public ResultData update(User user) {
		userDao.update(user);
		return ResultData.success(null);
	}
}
